#include "aboutdialog.h"

AboutDialog::AboutDialog(QWidget *parent) :
    QDialog(parent)
{
    aboutLabel = new QLabel("<p><b>Ashva 0.1</b></p><p><b>A LAN communication software.</b></p><p>This software is GPLv3 licensed.</p><p>For any queries, bugs, feature requests, please feel free to contact -</p><p>Author : Saurabh Rawat</p><p>Email : sr.eklavya@gmail.com</p><p>Project URL : http://code.google.com/p/ashva</p>");
    closeButton = new QPushButton(tr("Close"));
    mainLayout = new QVBoxLayout;
    mainLayout->addWidget(aboutLabel);
    mainLayout->addWidget(closeButton);
    QObject::connect(closeButton, SIGNAL(clicked()), this, SLOT(closeClicked()));
    this->setLayout(mainLayout);
    this->show();
}

void AboutDialog::closeClicked() {
    this->~QDialog();
}
